import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class RedisTest2 {
    public static void main(String[] args) {
        JedisPoolConfig jj = new JedisPoolConfig();
        jj.setMaxTotal(30);
        jj.setMaxIdle(2);

        JedisPool pool = new JedisPool(jj,"连接的地2址", 6379);
        Jedis jedis = null;
        jedis = pool.getResource();
        String asd = jedis.get("age");
        System.out.println(asd);
        //向尾部追加值   age是字符串的长度
        Long age = jedis.append("age", "1243");
        System.out.println(age);
        System.out.println(jedis.get("age"));
        
    }
}
